<?php

namespace Database\Factories;

use App\Models\ESCluster;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Model>
 */
class EarlyAlarmFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'item' =>  $this->faker->randomElement(['箱温度最大标准分，箱温度均值', '箱-电压一致性差级系数','簇温度标准差']),
            'suggestion' => $this->faker->randomElement(['无', '更换电池']),
            // 'result' => ,
            'level' => $this->faker->randomElement(['light', 'moderate','severe']),//'normal', 
            'effect' => $this->faker->randomElement(['恢复正常']),
            'e_s_cluster_id' =>  $this->faker->randomElement(ESCluster::all()->pluck('id')),
        ];
    }
}
